package cn.geminis.lowcode.compiler.code;

import cn.geminis.lowcode.compiler.util.JdkTreeMakerUtils;
import com.sun.source.tree.ReturnTree;
import lombok.RequiredArgsConstructor;

/**
 * @author puddi
 */
@RequiredArgsConstructor
public class LcReturn extends AbstractStatement<ReturnTree> {
    private final AbstractExpression<?> statement;

    @Override
    protected ReturnTree createJdkTree() {
        return JdkTreeMakerUtils.rtn(this.statement.getJdkTree());
    }

}
